package com.belf.evaluatetool.web;

import belf.migrate.engine.job.Result;
import com.belf.evaluatetool.domain.EvalTaskConf;
import com.belf.evaluatetool.service.DatabaseService;
import com.belf.evaluatetool.service.EvalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * EvalController
 *
 * @author l
 * @since 2024/10/28 11:45
 */

@RestController
@RequestMapping("/eval")
public class EvalController {

    @Autowired
    private EvalService evalService;

    @PostMapping("/testEval")
    @ResponseBody
    public Result testEval(@RequestBody EvalTaskConf evalTaskConf) {
        return evalService.testEval(evalTaskConf);
    }

}
